<hr>
<div class='stock-factor'>
<?php
echo elgg_view_form('xray/factor', 
	array(
		'name' => 'stock-factor-form',
	), $vars
);
?>

<div id='factor-list'>
<label>Lastet Factors:</label>
<?php
	unset($options);
	$options = array(
		'type' => 'object',
		'subtype' => 'factor',
		'security' => $security,
		'pagination' => false,
		'limit' => 10,
	);
	$output = elgg_list_entities($options);
	echo $output
?>
</div>

</div>

<div class="stock-river-wrapper">
  <div class="stock-river-head">相关Blog&Event：</div>
  <div class="stock-river-body">
<?php
unset($options);
$options['type'] = 'object';
$options['subtypes'] = array('blog', 'event');
$options['focus_sec'] = $vars['sec'];
echo elgg_list_river($options);
?>
  </div>
</div>
